package designPattern.AdapterPattern;

import designPattern.AdapterPattern.saver.SDCard;

/**
 * fileName: ThinkpadComputer
 * description: ...
 * <p>
 * 创建一个计算机实例，实现计算机接口，并实现其读取SD卡方法
 *
 * @author lihaogn-main
 * @version 1.0
 * @date 2019/9/18 20:58
 */
public class ThinkpadComputer implements Computer {

    @Override
    public String readSD(SDCard sdCard) {
        if (sdCard == null) {
            throw new NullPointerException("sd卡内容为空");
        }
        return sdCard.readSD();
    }
}
